import java.util.concurrent.Callable;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-04-20
 * Time: 19:23
 */

class Animal {
    public String name;
    public int age;
}
class Dog extends Animal{
    public void eat() {
        System.out.println(this.name+"正在吃饭！");
    }
    public void bark() {
        System.out.println(this.name+"正在汪汪汪");
    }
}
class Cat  extends Animal{
    public void eat() {
        System.out.println(this.name+"正在吃饭！");
    }
    public void bark() {
        System.out.println(this.name+"正在喵喵喵");
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.age = 3;
        dog.name  = "小灰灰";
        dog.eat();
        dog.bark();

        System.out.println("======================");
        Cat cat = new Cat();
        cat.age = 5;
        cat.name = "小咪咪";
        cat.eat();
        cat.bark();
        System.out.println("Day 34");
    }
}